import {
	http
} from '@/utils/request.js'
// 轮播图
export const bannerlist = (data) => {
	return http.post('/api/index/banner', data)
}
// 首页新手指南，vip
export const indexfile = (data) => {
	return http.post('/api/index/indexfile', data)
}
// 搜索词
export const searchkey = (data) => {
	return http.post('/api/index/searchkey', data)
}
// 商品分类
export const classlist = (data) => {
	return http.post('/api/goods/classlist', data)
}
// 商品列表
export const goods = (data) => {
	return http.post('/addons/shopro/goods.goods', data)
}
// 商品详情
export const goodsdetail = (data) => {
	return http.post('/addons/shopro/goods.goods/detail', data)
}
// 商品收藏，取消收藏
export const favorite = (data) => {
	return http.post('/addons/shopro/user.goods_log/favorite', data)
}
// 加入购物车
export const addcart = (data) => {
	return http.post('/addons/shopro/cart/update', data)
}
// 购物车列表
export const cartList = (data) => {
	return http.post('/addons/shopro/cart/index', data)
}
// 删除购物车
export const delcart = (data) => {
	return http.post('/addons/shopro/cart/delete', data)
}
// 会员套餐
export const viplist = (data) => {
	return http.post('/api/user/viplist', data)
}
// 单页
export const article = (data) => {
	return http.post('/api/index/article', data)
}
// 首页预售信息

export const indexyushou = (data) => {
	return http.post('/api/index/yushou', data)
}
// 预售活动
export const yushougoods = (data) => {
	return http.post('/api/index/yushougoods', data)
}
// 参与预售
export const canyuys = (data) => {
	return http.post('/api/user/canyuys', data)
}
// 预售活动详情
export const ysfile = (data) => {
	return http.post('/api/index/ysfile', data)
}